<?php
namespace Common\Model;

/**
 * Genre Model Class
 *
 * @package Common\Model
 * @author lythesia
**/
class GenreModel extends BaseModel {
  protected $tableName = 'genreinfo';

  protected $_link = array(
    'Movie' => array(
      'mapping_type'        => self::MANY_TO_MANY,
      'class_name'          => 'Movie',
      'mapping_name'        => 'movies',
      'foreign_key'         => 'genre_id',
      'relation_foreign_key'=> 'movie_id',
      'relation_table'      => 'moviegenre',
    ),
  );
}
